package com.forum.demo.model.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;

@Data
public class ArticleResponse {
    private Long id;

    private Long userId;

    private String nickname;

    @JsonInclude(JsonInclude.Include.ALWAYS) // 强制参与JSON序列化
    private String avatarUrl;

    private Long boardId;

    private String name;

    private String title;
    // 访问次数
    private Integer visitCount;

    // 回复次数
    private Integer replyCount;

    // 点赞次数
    private Integer likeCount;

    private String content;

    private Byte state;

    private Boolean Own;

    private Date createTime;

    private Date updateTime;

}
